
var curWwwPath = window.document.location.href;
var pathName = window.document.location.pathname;
var pos = curWwwPath.indexOf(pathName);
var locationPath = curWwwPath.substring(0, pos);

setInterval("js_update();",7000);
var code_key=530980;

function js_update(){
		$.ajax({
		url: locationPath + '/index.php/Home/Pk10/js_update?t=' +Math.random(),
		type: "GET",
		data: {"code_key":code_key},
		success: function(data) {
				if(data){
					$("#ok").html(code_key+'成功');
					code_key=code_key+1;
				}else{
					$("#ok").html(code_key+'失败');
				}
			}
		});
}










